<?php MYDCONN(); 
	$line = '';
?>
<div class="title">Stock</div>
<table width="100%"  border="0" cellpadding="3" cellspacing="1">
  <tr bgcolor="#F2F2F2">
    <td width="20%">Designação</td>
    <td width="12%">Fornecedor</td>
    <td width="10%">Quantidade</td>
    <td width="5%">Estado</td>
  </tr>
  <?php
   $GET = $GLOBALS['MYD']->db_array("SELECT 
					* FROM ccenter_econstocks"); 
	for ($f = 1; $f <= $GET[0]; $f++) { 
	
		$line .= '<tr bgcolor="#D3D6E4">
				<td>'.$GET[$f]['RefProduct'].'</td>
				<td>'.$GET[$f]['RefProvider'].'</td>
				<td>'.$GET[$f]['Quantity'].'</td>
				<td>'.$GET[$f]['Status'].'</td>
				</tr>';
   } 
   echo $line; ?>
</table>
